Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(behavior_path_planner): return default value if no registered module exists #3843

Conversation

satoshi-ota
Copy link
Contributor

@satoshi-ota satoshi-ota commented May 26, 2023

Description

Since std::all_of returns true if the vector is empty, it should use default parameter in such a case.

Tests performed

Effects on system behavior

Nothing.

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label May 26, 2023
@codecov
Copy link

codecov bot commented May 26, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (49d853c) 14.11% compared to head (a35fbee) 14.11%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3843   +/-   ##
=======================================
  Coverage   14.11%   14.11%           
=======================================
  Files        1438     1438           
  Lines      101542   101519   -23     
  Branches    27063    27063           
=======================================
  Hits        14330    14330           
+ Misses      71524    71501   -23     
  Partials    15688    15688           
Flag Coverage Δ *Carryforward flag
differential 13.18% <ø> (?)
total 14.11% <ø> (+<0.01%) ⬆️ Carriedforward from 49d853c

*This pull request uses carry forward flags. Click here to find out more.

Impacted Files Coverage Δ
...avior_velocity_intersection_module/src/manager.cpp 0.00% <ø> (ø)
...ity_intersection_module/src/scene_intersection.cpp 0.00% <ø> (ø)
...ity_intersection_module/src/scene_intersection.hpp 0.00% <ø> (ø)
.../behavior_velocity_speed_bump_module/src/debug.cpp 0.00% <ø> (ø)
...havior_velocity_traffic_light_module/src/debug.cpp 0.00% <ø> (ø)
...havior_velocity_traffic_light_module/src/scene.hpp 0.00% <ø> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

…ule exists

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
@satoshi-ota satoshi-ota force-pushed the fix/scene-module-manager-interface branch from cbfa7b6 to a35fbee Compare May 26, 2023 13:32
Copy link
Contributor

@shmpwk shmpwk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@satoshi-ota satoshi-ota merged commit 3950f81 into autowarefoundation:main May 26, 2023
@satoshi-ota satoshi-ota deleted the fix/scene-module-manager-interface branch May 26, 2023 15:06
kosuke55 pushed a commit to tier4/autoware.universe that referenced this pull request May 29, 2023
…ule exists (autowarefoundation#3843)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
tkimura4 pushed a commit to tier4/autoware.universe that referenced this pull request May 29, 2023
…ule exists (autowarefoundation#3843) (#541)

Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
Co-authored-by: Satoshi OTA <44889564+satoshi-ota@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:planning Route planning, decision-making, and navigation. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants